<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>登陆页面</title>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript">
function yanz(){
	var a = document.forms["myForm"]["yhm"].value;
	var b = document.forms["myForm"]["pwd"].value;
	if(a==""||a==null){
		alert("账号未输入！");
		return false;
	}else if(b==""||b==null){
		alert("密码未输入");
		return false;
	}else{
		return true;
	}
}
</script>
<style type="text/css">
	#yjc {
	width: 350px;
	margin:50px auto;
	padding: 20px 0;
	border: 1px solid red;
	text-align: center;
	background-color:#FFEBCD;
	}
	#xpz{
		margin-top:50px;
		margin-left: 600px; 	
	}
	body{
		background-color:#FFF5EE;
	}
	h2{
		font-size: 0.8cm;
	}
	button {
		margin-right:20px;
		margin-top: 10px;
		margin-bottom:-5px;
		width: 65px;
		height: 25px;
	}
	input {
		width:180px;
		margin-top: 25px;	
	}
	#pwd {
		margin-bottom: 25px;
	}
</style>
</head>
<body>
	<div id="xpz">
		<img alt="" src="beijing/logo.jpg" width="730px" height="225px">
	</div>
	<div id="yjc">
		<h2>登     陆</h2>
		<hr>
		<form action="Denglu" method="post" name="myForm" onsubmit="return yanz()">
			<label><font color="red" id="error">${error}</font></label><br/>
			<label>卡号：</label><input type="text" name="yhm" placeholder="账号/卡号" ${readonly}><br/>			
			<label>密码：</label><input id="pwd" type="password" name="pwd" placeholder="密码" ${readonly}>		
			<hr>
			<button type="submit">登陆</button>
			<button type="reset">重置</button>
		</form>
	</div>
</body>
</html>